﻿@{
    ViewBag.Title = "UpdateType";
}
<style type="text/css">
    .aa {
        background-color: #808080;
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    th {
        width: 180px;
    }
</style>
<form action="../Books/UpdateType" method="post">
    <table border="1" cellspacing="0">
        <tr>
            <th colspan="2">
                <h2 class="aa">修改图书类别信息</h2>
            </th>
        </tr>
        <tr>
            <input type="hidden" name="TypeID" value="
        @foreach (var item in ViewBag.tt)
        {
		 @item.TypeID 
        }"/>
            <th>类别名称:</th>
            <th>
                <input type="text"name="TypeName" value="@foreach (var item in ViewBag.tt)
                                                         {
                                                             @item.TypeName
                                                         }"/></th>
        </tr>
     @*   <tr>
            <th>所属类编号:</th>
            <th>
                <input type="text" name="Type" value="@foreach (var item in ViewBag.tt)
                                                      {
                                                            @item.Type
                                                      }"/></th>
        </tr>*@
        <tr>
            <th>是否可用:</th>
            <th>
                @foreach (var item in ViewBag.tt)
                {
                    if (@item.state == 1)
                    {
                    <p>
                        <input type="radio" checked="checked" value="1" name="state" />可用
                    <input type="radio" value="2" name="state" />不可用
                    </p> 
                    }
                    else
                    {
                    <p>
                        <input type="radio" value="1" name="state" />可用
                    <input type="radio" value="2" name="state" checked="checked" />不可用
                    </p> 
                    }
                }
            </th>
        </tr>
        <tr>
            <th>描述:</th>
            <th>
                <textarea rows="10" cols="20" name="Note">@foreach (var item in ViewBag.tt)
                                                          {
                                                                @item.Note
                                                          }</textarea></th>
        </tr>
        <tr>
            <th>
                <input type="submit" value="提交" /></th>
            <th>
                <input type="reset" value="重置" /></th>
        </tr>
    </table>
</form>

